package com.itheima03.day13;

import java.io.*;

/**
 * @author 刘全
 * @date 2021/8/4
 */
public class Test5 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("D:\\itheima\\IdeaProjects\\itheima\\myideaTest\\src\\com\\itheima03\\day13\\1.txt"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("D:\\itheima\\IdeaProjects\\itheima\\myideaTest\\src\\com\\itheima03\\day13\\2.txt"));
        String s;
        while ((s = br.readLine()) != null) {
            bw.write(s);
            bw.newLine();
        }
        br.close();
        bw.close();
    }
}
